package team.zero.lemon.module.workflow.dao;

import org.apache.ibatis.annotations.Param;
import team.zero.lemon.common.persistence.ICrudDao;
import team.zero.lemon.common.persistence.annotation.MyBatisDao;
import team.zero.lemon.module.workflow.entity.Activity;

import java.util.List;

@MyBatisDao
public interface IActivityDao extends ICrudDao<Activity> {
    public List<Activity> findByTemplateId(@Param("templateId") int templateId);

    public List<Activity> findStartActivityByTemplateId(@Param("templateId") int templateId);

    public List<Activity> findNextActivity(@Param("activityId") Integer activityId, @Param("expression") String expression);
    public List<Activity> findNextActivityByRuleId(@Param("ruleId") Integer expression);

}